package analyser;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import collector.CollectorFactory;
import collector.collector;

@Component(value="ca")
public class ClusterAnalyser implements Analyser {

//	@Autowired
//	@Qualifier(value="usbCollector")
	@Resource(name="uc")
	private collector collector;
	
	public void setCollector(collector collector) {
		this.collector = collector;
	}

	@Override
	public void analyse() {
		collector.collect();
		System.out.println("clustor analysing......");
		

	}

}
